<?php
/* @var $this ColorController */
/* @var $model Color */
$this->breadcrumbs=array(
Yii::t('default', 'Colors')=>array('index'),
$model->id,
);

$this->menu=array(
array('label'=>Yii::t('default', 'Create'), 'url'=>array('create')),
array('label'=>Yii::t('default', 'Update'), 'url'=>array('update', 'id'=>$model->id)),
array('label'=>Yii::t('default', 'Delete'), 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
array('label'=>Yii::t('default', 'List'), 'url'=>array('index')),
);
?>

<h1>
<?php echo Yii::t('default', 'View'). ' ' . Yii::t('default', 'Color')?>
  #
  <?php echo $model->id; ?>
</h1>

  <?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
  array(
    'name' => Yii::t('default', 'Color'),
    'value' => ColorLang::model()->getName($model->id),
  ),
  array(
		'name'=>'enabled',
		'value'=>($model->enabled==1)?Yii::t("default", "Yes"):Yii::t("default", "No")
  ),
  array(
		'name'=>'createddate',
		'value'=>date("d-m-Y G:i",$model->createddate)
  ),
  array(
		'name'=>'modifieddate',
		'value'=>date("d-m-Y G:i",$model->modifieddate)
  ),
  ),
  )); ?>
